package com.wlanauth.dao.radius.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wlanauth.dao.common.impl.CommonDaoImpl;
import com.wlanauth.dao.radius.RadCheckDao;
import com.wlanauth.domain.radius.RadCheck;

public class RadCheckDaoImpl extends CommonDaoImpl<RadCheck> implements RadCheckDao{

	@SuppressWarnings("unchecked")
	public List<RadCheck> getAllRadCheckByUsername(String username)  throws DataAccessException  {
		
		return this.getHibernateTemplate().find("from RadCheck r where r.username=?",new Object[]{username});
		
	}
	
	
}
